//
//  CHHTTPSessionRequset.h
//  音悦台
//
//  Created by qianfeng0 on 16/6/11.
//  Copyright © 2016年 changhao. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^SUCCESS)(id responseObject);

typedef void(^FAILURE)(NSError *error);

@interface CHHTTPSessionRequset : NSObject

/**
 *  获得CHHTTPSessionRequset的单例对象
 */
+ (CHHTTPSessionRequset *)sharedManager;

/**
 *  HTTPManager 的get请求方法
 *
 */
- (void)GET:(NSString *)url pramas:(NSDictionary *)pramas success:(SUCCESS)success failure:(FAILURE)failure;

/**
 *  HTTPManager 的post请求方法
 *
 */
- (void)POST:(NSString *)url pramas:(NSDictionary *)pramas success:(SUCCESS)success failure:(FAILURE)failure;

@end
